package com.zte.smbms_plus.mapper;

import com.zte.smbms_plus.pojo.SmbmsAddress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author DY
* @description 针对表【smbms_address】的数据库操作Mapper
* @createDate 2021-12-29 09:20:18
* @Entity com.zte.smbms_plus.pojo.SmbmsAddress
*/

@Mapper
public interface SmbmsAddressMapper extends BaseMapper<SmbmsAddress> {

    /**
     * 查询所有地址或者根据id查询地址
     * @param aid
     * @return
     */
    public List<SmbmsAddress> findAddressOrById(@Param("id") Long aid);

    /**
     * 增加地址
     * @param address
     * @return
     */
    public boolean addAddress(SmbmsAddress address);

    /**
     * 修改地址
     * @param address
     * @return
     */
    public boolean updateAddress(SmbmsAddress address);

    /**
     * 删除地址
     * @param aid
     * @return
     */
    public boolean delAddress(Long aid);



}




